
/* -----------------
* brief 
* 1. this is code gen by tools 
* 2. array like [a,b,c] after each field, define the ui html tag in view, 
		a for title, 
		b for show or not , (onlyread is trial feature)
		c for element html tag , currently support : check、radio、select、input、textarea、upload
* 3. XXX
*/
//go:generate legogen -type=ImageList -kv=ModuleName=product,PrjName=saas_sys_base -dirconf=../../.. ./ImageList.go

/*使用方法一(go generate)：在工程root目录下，执行go generate ./modules/product/models

使用方法二(legogen)：直接调用生成命令
legogen -type=ImageList -kv=ModuleName=product,PrjName=saas_sys_base -dirconf=./. ./modules/product/models/ImageList.go
*/

package product
import (
	"github.com/mjiulee/lego"
)

func init() {
	lego.AddBeanToSynList(new(ImageList))
}

/* table: "tb_image_list"
 * -----------------
*/
type ImageList struct {
	Id        int64  `xorm:"pk" json:",string"`                  // ["id","hide","hidden"]
	IfDel     int `xorm:"default 0"` // ["deleted","hide","hidden"]
	Cdate     string `xorm:"DateTime created"`    // ["create","show","datetime"]
	Udate     string `xorm:"DateTime updated"`    // ["update","show","datetime"]
	Url string `xorm:"varchar(500)  "` // ["Url","show","input"]
	ProductId int64 `xorm:"BigInt" json:",string"`  // ["所属商品","show","input"]
    // add your custom field here
}